package com.quick.develop.flowable.domain.vo.instance;

import com.quick.develop.flowable.domain.BpmBaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Map;

@EqualsAndHashCode(callSuper = true)
@ApiModel("流程管理后台 - 流程实例的创建 Request VO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BpmProcessInstanceCreateReqVO extends BpmBaseDO implements Serializable {

    private static final long serialVersionUID = 1313771585999264690L;

    private String executeCmd;
    
    @ApiModelProperty(value = "流程发起人", notes = "如果流程启动人需要指定，则赋值")
    private String processStartUserId;
    
    @ApiModelProperty(value = "用户ID" )
    private String userId;

    @ApiModelProperty(value = "用户名称" )
    private String userName;

    @ApiModelProperty(value = "是否自动完成第一个节点" , notes = "用于识别第一个节点委托")
    private boolean autoComplete;

    @ApiModelProperty(value = "流程名称" , example = "XXX发起XXX流程")
    private String processName;

    @ApiModelProperty(value = "变量实例", notes = "设置全局变量")
    private Map<String, Object> processVariables;

    @ApiModelProperty(value = "审批意见",  example = "不错不错！")
    private String comment;

}
